
/*
PIC32MX795F512L 3.2" TFT LCD Demo Board MDDFS FileSystem Config File
Copyright (C) 2012 Craig Dawson, Aaron Mohtar, Craig Peacock

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#include "HardwareProfile.h"

#define FS_MAX_FILES_OPEN 	3
#define MEDIA_SECTOR_SIZE 	512

// Support Long File Names upto 256 characters
#define	SUPPORT_LFN
#define ALLOW_FILESEARCH
#define ALLOW_WRITES
#define SUPPORT_FAT32
#define ALLOW_FORMATS
#define ALLOW_DIRS
#define USEREALTIMECLOCK
#define ALLOW_GET_DISK_PROPERTIES
#define ALLOW_FSFPRINTF

#ifdef USE_SD_INTERFACE_WITH_SPI
    #define MDD_MediaInitialize     MDD_SDSPI_MediaInitialize
    #define MDD_MediaDetect         MDD_SDSPI_MediaDetect
    #define MDD_SectorRead          MDD_SDSPI_SectorRead
    #define MDD_SectorWrite         MDD_SDSPI_SectorWrite
    #define MDD_InitIO              MDD_SDSPI_InitIO
    #define MDD_ShutdownMedia       MDD_SDSPI_ShutdownMedia
    #define MDD_WriteProtectState   MDD_SDSPI_WriteProtectState
    #define MDD_ReadCapacity        MDD_SDSPI_ReadCapacity
    #define MDD_ReadSectorSize      MDD_SDSPI_ReadSectorSize
#elif defined USE_USB_INTERFACE
    #define MDD_MediaInitialize     USBHostMSDSCSIMediaInitialize
    #define MDD_MediaDetect         USBHostMSDSCSIMediaDetect
    #define MDD_SectorRead          USBHostMSDSCSISectorRead
    #define MDD_SectorWrite         USBHostMSDSCSISectorWrite
    #define MDD_InitIO();
    #define MDD_ShutdownMedia       USBHostMSDSCSIMediaReset
    #define MDD_WriteProtectState   USBHostMSDSCSIWriteProtectState
#endif


